package cloud.ben.smallscalepigfarmmanagementsystem.service.pig;

import cloud.ben.smallscalepigfarmmanagementsystem.entity.pig.PigPurchaseRecords;
import cloud.ben.smallscalepigfarmmanagementsystem.entity.pig.PigSalesRecords;
import cloud.ben.smallscalepigfarmmanagementsystem.utils.RespBean;

/**
 * @Author: Ben
 * @Date: 2022/4/6 11:33
 */
public interface IPigSalesRecordsService {

    /**
     * 增加保生猪销售记录信息
     * @param pigSalesRecords
     * @return RespBean
     */
    RespBean insertPigSalesRecords(PigSalesRecords pigSalesRecords);

    /**
     *根据id删除生猪销售记录信息
     * @param id
     * @return RespBean
     */
    RespBean deletePigSalesRecords(Integer id);

    /**
     * 修改生猪销售记录信息
     * @param pigSalesRecords
     * @return RespBean
     */
    RespBean updatePigSalesRecords(PigSalesRecords pigSalesRecords);


    /**
     * 分页查询生猪销售记录信息
     * @param pageNumber
     * @param pageSize
     * @return RespBean
     */
    RespBean selectPigSalesRecordsByPage(Integer pageNumber,Integer pageSize);

    /**
     *查询生猪购入记录数量（方便分页）
     * @return RespBean
     */
    RespBean selectPigSalesRecordsNum();



}
